<?php 
$codigo_html = "";
$codigo_html .= '<div id="session_flash" class="session_flash_error" style="display:none;">';
$codigo_html .= $content_for_layout;
$codigo_html .= "<br/>";
$codigo_html .= "<a href='#' onclick=\"return ocultarSessionFlash()\">Aceptar</a>";
$codigo_html .= "</div>";

$codigo_html .= $javascript->codeBlock("	
	var ElDivDelFlash = document.getElementById('session_flash');
	if (ElDivDelFlash)
	{
		var top=((screen.availHeight-ElDivDelFlash.offsetHeight)/2)-150;
		var left=((screen.availWidth-ElDivDelFlash.offsetWidth)/2)-200;

		ElDivDelFlash.style.display = 'block';
		ElDivDelFlash.style.left = left;
		ElDivDelFlash.style.top = top;
	}

	setTimeout('ocultarSessionFlash()',6000);
	");

echo $codigo_html;
?>